from django.urls import converters
import re

class UsernameConverter:
    regex = '[a-zA-Z0-9]{5,20}'

    def to_python(self,value):
        return value
